package com.riven.bilibilidemo.activity;

import android.content.Intent;
import android.media.Image;
import android.os.Build;
import android.os.Bundle;
import android.app.Activity;
import android.support.annotation.RequiresApi;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toolbar;

import com.bumptech.glide.Glide;
import com.riven.bilibilidemo.R;

import org.w3c.dom.Text;

public class User_connect_Activity extends Activity {

    private TextView connect_name;
    private TextView connect_source;
    private ImageView connect_icon;


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_connect_);



        Intent intent = getIntent();
        String name = intent.getStringExtra("name");
        String title = intent.getStringExtra("title");
        String image = intent.getStringExtra("icon");

        connect_name = (TextView) findViewById(R.id.connect_name);
        connect_name.setText(name);
        connect_source = (TextView) findViewById(R.id.connect_source);
        connect_source.setText(title);
        connect_icon = (ImageView) findViewById(R.id.connect_icon);
        Glide.with(User_connect_Activity.this).load(image).into(connect_icon);
    }
}
